package com.sduept.component.message.rest;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.PathVariable;



import com.sduept.component.message.core.UserAlarmMessageService;
@RestController
@RequestMapping("/")
public class MessageRestService {
	@Autowired
	private UserAlarmMessageService cache;
	

    @GetMapping("/getUserMsg/{userId}")
	public String getUserMsgs(@PathVariable("userId") String userId) {
//		4785074607226881
		//JSONArray rtn = new JSONArray();
		//rtn.addAll(cache.getUserMsgs(userId));
		return "";
    }
	

	@GetMapping("/getAlarmMsgs")
	public String geAlarmMsgs() {
		//JSONArray rtn = new JSONArray();
		//rtn.addAll(cache.getAlarmMsgs());
		return "";
	}

	@GetMapping("/getSystemMsgs")
	public String getSystemMsgs() {
	//	JSONArray rtn = new JSONArray();
	///	rtn.addAll(cache.getSystemMsgs());
		return "";
	}
}
